package com.bmps.springcloud.insuredmicroservice.repository.accept.master;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * description:
 * 根据类型获取最大数字
 *
 * @author jackdaw
 * @date 2020-03-12 14:47
 */
@Repository
public interface SysMaxNoRepository {
    /**
     * 获取10位流水
     *
     * @return
     */
    @Select("SELECT LPAD(fnCreateMaxNo('insurered','SN'),10,'0')")
    String getTenSerialNumber();
}
